import { useState } from 'react';

/**
 * 组件强制更新
 * @returns
 */
export function useForceUpdate () {
    const [count, setCount] = useState<number>(0);
    return () => {
        setCount(count + 1);
    };
}
